package com.jinbei;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @author zflu
 * app入口
 * Created by lucky on 2018/7/8.
 */
@ServletComponentScan
@SpringBootApplication
@MapperScan("com.jinbei.mapper")
public class JinBeiApp extends SpringBootServletInitializer{

    @Override
    public SpringApplicationBuilder configure(SpringApplicationBuilder application){
        return application.sources(JinBeiApp.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(JinBeiApp.class,args);
    }

}
